<!-- FOOTER  -->
<div class='footer'>
    <?php 
        $br = count($columns);
        $i=0;

        foreach($columns as $column){

            if($this->datam->countSubcolumnsByColumn($column['id'])>0){ 
                $i++;

                $subcols = $this->datam->getSubcolumnsByColumn($column['id']);

                $s=count($subcols);
                $br += $s;
                foreach($subcols as $subcol){
                    $i++;
                    $link = /* '#'; // base_urel() . "/" . */ $column['name'] . "/" . $subcol['name'] ;//. "/" .$subcol['id'];
                    echo "<a  href='{$link}'>{$subcol['name']}</a>";
                    if($i<$br)  echo "&nbsp;| ";

                }

            }
        }

    ?>

</div>
<div class='footer_2'>
    <a href='javascript:void(null)' >Оглашавање</a> &nbsp; | &nbsp;
    <a href='javascript:void(null)' >
        <span id="rss"><img src='<?=$url?>assets/images/rss.png' /></span>
        <span class="rss-a">RSS</span>
    </a>
</div>

<!-- end FOOTER -->